import Vue from "vue";
import Router from "vue-router";
import Home from "./views/Home.vue";
// import Sjwh from "./components/recode/sjwh.vue";
// import Sjsr from "./components/recode/sjsr.vue";
// import Tjbb from "./components/baobiao/tjbb.vue";
// import Nlpg from "./components/pinggu/nlpg.vue";

Vue.use(Router);

export default new Router({
  mode: 'hash',
  routes: [
    {
      path: '*',      //设置重定向
      redirect: '/'
    },
    {
      path: "/",
      name: "login",
      component: () =>
        import("./views/login.vue")
    },
    {
      path: "/sjwh",
      name: "sjwh",
      meta: {
        requireAuth: true
      },
      component: () =>
      import("./components/recode/sjwh.vue"),
      children: [
        {
          path: "sjsl",
          name: "sjsl",
          component: () =>
            import("./components/recode/sjsl.vue"),
          children: [
            {
              path: "jbxx",
              name: "jbxx",
              component: () =>
                import("./components/recode/jbxx.vue")
            },
            {
              path: "gjqy",
              name: "gjqy",
              component: () =>
                import("./components/recode/gjqy.vue")
            },
            {
              path: "zhjg",
              name: "zhjg",
              component: () =>
                import("./components/recode/zhjg.vue")
            },
            {
              path: "zyll",
              name: "zyll",
              component: () =>
                import("./components/recode/zyll.vue")
            },
            {
              path: "fhsd",
              name: "fhsd",
              component: () =>
                import("./components/recode/fhsd.vue")
            },
            {
              path: "wzxx",
              name: "wzxx",
              component: () =>
                import("./components/recode/wzxx.vue")
            },
            {
              path: "zbxx",
              name: "zbxx",
              component: () =>
                import("./components/recode/zbxx.vue")
            },
            {
              path: "clxx",
              name: "clxx",
              component: () =>
                import("./components/recode/clxx.vue")
            },
            {
              path: "fhgc",
              name: "fhgc",
              component: () =>
                import("./components/recode/fhgc.vue")
            },
            {
              path: "xlqk",
              name: "xlqk",
              component: () =>
                import("./components/recode/xlqk.vue")
            },
            {
              path: "yxqk",
              name: "yxqk",
              component: () =>
                import("./components/recode/yxqk.vue")
            },
            {
              path: "khqk",
              name: "khqk",
              component: () =>
                import("./components/recode/khqk.vue")
            },
            {
              path: "jfly",
              name: "jfly",
              component: () =>
                import("./components/recode/jfly.vue")
            },
            {
              path: "jfzc",
              name: "jfzc",
              component: () =>
                import("./components/recode/jfzc.vue")
            },
            {
              path: "dmtxx",
              name: "dmtxx",
              component: () =>
                import("./components/recode/dmtxx.vue")
            },
            {
              path: "fspg",
              name: "fspg",
              component: () =>
                import("./components/pinggu/fspg.vue")
            }
          ]
        },
        {
          path: "tjbb",
          name: "tjbb",
          component: () =>
            import("./components/baobiao/tjbb.vue"),
            children: [
            {
              path: "zyjjmb",
              name: "zyjjmb",
              component: () =>
                import("./components/baobiao/zyjjmb.vue")
            },
            {
              path: "zylljslj",
              name: "zylljslj",
              component: () =>
                import("./components/baobiao/zylljslj.vue")
            },
            {
              path: "dwzyllnl",
              name: "dwzyllnl",
              component: () =>
                import("./components/baobiao/dwzyllnl.vue")
            },
            {
              path: "fhjsljqk",
              name: "fhjsljqk",
              component: () =>
                import("./components/baobiao/fhjsljqk.vue")
            },
            {
              path: "zzzhjsljqk",
              name: "zzzhjsljqk",
              component: () =>
                import("./components/baobiao/zzzhjsljqk.vue")
            },
            {
              path: "dwjfndqk",
              name: "dwjfndqk",
              component: () =>
                import("./components/baobiao/dwjfndqk.vue")
            },
            {
              path: "dwjfljqk",
              name: "dwjfljqk",
              component: () =>
                import("./components/baobiao/dwjfljqk.vue")
            }
          ]
        },
        {
          path: "gjss",
          name: "gjss",
          component: () =>
            import("./components/gjss/search.vue"),
          // children: [
          //   {
          //     path: "fspg",
          //     name: "fspg",
          //     component: () =>
          //       import("./components/gsss/ssjg.vue")
          //   }
          // ]
        }
      ]
    },
    {
      path: "/index",
      name: "index",
      component: () =>
        import("../src/views/index.vue"),
      meta: {
        requireAuth: true,
      }
    },
    {
      path: "/home",
      name: "home",
      component: Home,
      meta: {
        requireAuth: true,
      },
      children: [
        {
          path: "/jsyygl",
          name: "jsyygl",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/muen/jsyygl.vue")
        },
        {
          path: "/power",
          name: "power",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/muen/power.vue")
        },
        {
          path: "/powerInfo",
          name: "powerInfo",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/muen/powerInfo.vue")
        },
        {
          path: "/userAdmin",
          name: "userAdmin",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/muen/userAdmin.vue")
        },
        {
          path: "/rfsysFpsz",
          name: "rfsysFpsz",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/rfsys/fpsz.vue")
        },
        {
          path: "/rfsysXtcspz",
          name: "rfsysXtcspz",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/rfsys/xtcspz.vue")
        },
        {
          path: "/rfsysYhzc",
          name: "rfsysYhzc",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/rfsys/yhzc.vue")
        },
        {
          path: "/aqbmysj",
          name: "aqbmysj",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/rfsjy/aqbmysj.vue")
        },
        {
          path: "/xtglysj",
          name: "xtglysj",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/rfsjy/xtglysj.vue")
        },
        {
          path: "/systmUserAdmin",
          name: "systmUserAdmin",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/muen/systmUserAdmin.vue")
        },
        {
          path: "/ywczsj",
          name: "ywczsj",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/muen/ywczsj.vue")
        },
        {
          path: "/aqsjysj",
          name: "aqsjysj",
          meta: {
            requireAuth: true,
          },
          component: () =>
            import("./components/muen/aqsjysj.vue")
        },
      ]
    },


  ]
});
